<DOCTYPE html>
<html>
	<head>
		<title>医嘱配液</title>
		<meta http-equiv="Content-type" content="text/html; charset=utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0">
		<meta name="apple-mobile-web-app-capable" content="yes" />
		<link rel="stylesheet" type="text/css" href="../../css/jquery.mobile-1.4.0.css">
		<link rel="stylesheet" type="text/css" href="../../css/zpdydhl_mobile.css">
		<link rel="stylesheet" type="text/css" href="../../css/yizhu.css">
		<script type="text/javascript" src="../../js/jquery-1.8.3.min.js"></script>
		<script type="text/javascript" src="../../js/zpdydhl_mobile.js"></script>
		<script type="text/javascript" src="../../js/yizhu.js"></script>
	</head>

	<body>
		<div class="ui-page ui-page-theme-c ui-page-header-fixed ui-page-active">
		
		<div id="zhixing_state_navbar" class="ui-navbar" style="position:fixed;top:42px;width:100%" >
			<ul class="ui-grid-a">
				<li class="li_zhixing_state ui-block-a" zhixing_state="待配液" id='daipeiye' style="width:33%">
					<a class="ui-btn-active ui-link ui-btn ui-btn-a" style="color:#ffffff;font-size:18px;">待配液</a>
				</li>
				<li class="li_zhixing_state ui-block-b" zhixing_state="已配液" id="yipeiye" style="width:33%">
					<a class="ui-link ui-btn ui-btn-a" style="color:#0D85C0;font-size:18px;">已配液</a>
				</li>
				<li class="li_zhixing_state ui-block-c" zhixing_state="已校对" id="yijiaodui" style="width:33%">
					<a class="ui-link ui-btn ui-btn-a" style="color:#0D85C0;font-size:18px;">已校对</a>
				</li>
			</ul>
		</div>
		<div data-role="content" class="content ui-content" style="margin-top:40px;">
			<div class="yizhu_list_content" style="">
			</div>
		</div>
		
		<div style=" position:fixed; top:0px; bottom:0px; left:0px; right:0px; background-color:#000; z-index:999; height:100%; filter:alpha(opacity=90,Style=3);-moz-opacity:0.9;-khtml-opacity: 0.9;opacity: 0.9; display:none;" id="yizhu_dialog">
			<div class="yizhu_dialog" data-theme="a">
				<div class="yizhu_dialog_title" data-theme="a"></div>
				<div class="yizhu_dialog_content"></div>
				<div class="yizhu_dialog_button"></div>
			</div>
		</div>

	<script>
		$(function(){
			f2_key_number = 1;
			document_type_global = "yizhuPeiye";
			
			// 选项卡切换
			$(".li_zhixing_state").die().live("mouseover",function(){
				var zhixing_state = $(this).attr("zhixing_state");
				if(zhixing_state=="待配液")
					f2_key_number=1;
				else if(zhixing_state=="已配液")
					f2_key_number=2;
				else if(zhixing_state=="已校对")
					f2_key_number=3;
				$(".li_zhixing_state").each(function(){
					
					if($(this).attr("zhixing_state")==zhixing_state)
					{	
						$(this).find('a').addClass('ui-btn-active');
						$(this).find('a').css("color","#ffffff");
					}
					else
					{
						$(this).find('a').removeClass('ui-btn-active');
						$(this).find('a').css("color","#0D85C0");
					}
				})
				getYizhuList(patient_info_global.zhuyuan_id,"输液",zhixing_state);
			});
			
			$(".back_home").die().live("click",function(){
				window.location.href="../System/showMobileSystem.html?zhuyuan_id=" + patient_info_global.zhuyuan_id;
			});
		});
		
		function refreshData()
		{
			getYizhuList(getRequestOne("patient_zhuyuan_id"),"输液","待配液");
			$(".ui-page").show(function(){$(document).trigger('mouseover')});
		}
	</script>
		</div> 
	</body>
</html>